module("Team", package.seeall )

BLUE = 2
RED  = 3

List = {
	BLUE,
	RED
}	

TeamModels = {
	[BLUE] = {
		"models/player/police.mdl",
		"models/player/combine_soldier.mdl",
		"models/player/combine_super_soldier.mdl"
	},
	[RED] = {
		"models/player/Group01/male_01.mdl",
		"models/player/Group01/male_02.mdl",
		"models/player/Group01/male_03.mdl",
		"models/player/Group01/male_04.mdl",
		"models/player/Group01/male_05.mdl",
		"models/player/Group01/male_06.mdl",
		"models/player/Group01/male_07.mdl",
		"models/player/Group01/male_08.mdl",
		"models/player/Group01/male_09.mdl",	
	}
}
	
function GM:CreateTeams()

	team.SetUp( BLUE, "Blue Team", Color( 0, 0, 255, 255 ) )
	team.SetUp( RED, "Red Team", Color( 255, 0, 0, 255 ) )

end

function UpdateModel( ply )

	local Models = TeamModels[ ply:Team() ]
	
	if Models then
		ply:SetModel( table.Random( Models ) )
		return true
	end

end 